package com.bins.dentist.clinic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 预约表
 * </p>
 *
 * @author bins
 * @since 2023-04-23 13:22:36
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_appointment")
@ApiModel(value = "AppointmentEntity对象", description = "预约表")
public class AppointmentEntity {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("患者id")
    @TableField("patient_id")
    private String patientId;

    @ApiModelProperty("患者姓名")
    @TableField("patient_name")
    private String patientName;

    @ApiModelProperty("预约医生id")
    @TableField("appointment_doctor_id")
    private String appointmentDoctorId;

    @ApiModelProperty("预约时间")
    @TableField("appointment_time")
    private LocalDateTime appointmentTime;

    @ApiModelProperty("预约状态 0:未确认 1:已预约 2:失约 3:已取消")
    @TableField("appointment_status")
    private Integer appointmentStatus;

    @ApiModelProperty("预约类型 1:预约")
    @TableField("appointment_type")
    private Integer appointmentType;

    @ApiModelProperty("病历号")
    @TableField("medical_record_no")
    private String medicalRecordNo;

    @ApiModelProperty("手机号")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty("医疗项目")
    @TableField("medical_item_id")
    private Integer medicalItemId;

    @ApiModelProperty("就诊类型 0:初诊 1:复诊")
    @TableField("consultation_type")
    private Integer consultationType;

    @ApiModelProperty("诊所id")
    @TableField("clinic_id")
    private Long clinicId;

    @ApiModelProperty("0:未删除 1:已删除")
    @TableField("is_del")
    private Integer isDel;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private Long createBy;

    @ApiModelProperty("创建人")
    @TableField("create_name")
    private String createName;

    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改人")
    @TableField("update_by")
    private Long updateBy;

    @ApiModelProperty("修改人")
    @TableField("update_name")
    private String updateName;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
